<html>
<body>
<p>Reports unclosed <code>scala.io.Source</code>.</p>

<p>Using a function like <code>.mkString</code> or <code>.getLines</code> directly on <code>Source</code> opened by
    <code>fromFile</code>, <code>fromURL</code>, or <code>fromURI</code> will leak the underlying file handle.</p>

<p>Consider using <code>.close()</code> with <code>try</code>/<code>finally</code> to manage the resource's lifetime
    or use <a href="https://scala-lang.org/files/archive/api/2.13.0/scala/util/Using$.html">Scala 2.13's <code>Using</code></a>.</p>

<p><b>Example:</b></p>
<pre><code>
  Source.fromFile("file.txt").getLines()
</code></pre>
<!-- tooltip end -->
</body>
</html>